package com.ton.system.entity;

import com.kypj.frame.db.annotation.MyPk;
import lombok.Data;

import java.util.Date;

//  admin_user
@Data
public class AdminUser {
    @MyPk
    private Integer id;  // id int(11)
    private String loginName;  // login_name varchar(50)   登录名
    private String passwd;  // passwd varchar(100)   密码
    private String personName;  // person_name varchar(20)   姓名
    private String mobile;  // mobile varchar(20)   手机号
    private Date createTime;  // create_time datetime
    private Integer flag;  // flag int(1)   0正常，1停用，9删除
    private String fixVerifyCode;//fix_verify_code
    private String deviceIds;
    private Date loginTime;//login_time
    private Integer maxDevice = 3;//max_device
    private Integer proxyUserId;// proxy_user_id    INT(11) COMMENT 'plat_channel_user.id 账户对应的总代账号ID'

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getId() {
        return id;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public String getLoginName() {
        return loginName;
    }

    public void setPasswd(String passwd) {
        this.passwd = passwd;
    }

    public String getPasswd() {
        return passwd;
    }

    public void setPersonName(String personName) {
        this.personName = personName;
    }

    public String getPersonName() {
        return personName;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getMobile() {
        return mobile;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setFlag(Integer flag) {
        this.flag = flag;
    }

    public Integer getFlag() {
        return flag;
    }


    public String getFixVerifyCode() {
        return fixVerifyCode;
    }

    public void setFixVerifyCode(String fixVerifyCode) {
        this.fixVerifyCode = fixVerifyCode;
    }

    public String getDeviceIds() {
        return deviceIds;
    }

    public void setDeviceIds(String deviceIds) {
        this.deviceIds = deviceIds;
    }

    public Date getLoginTime() {
        return loginTime;
    }

    public void setLoginTime(Date loginTime) {
        this.loginTime = loginTime;
    }

    public Integer getMaxDevice() {
        return maxDevice;
    }

    public void setMaxDevice(Integer maxDevice) {
        this.maxDevice = maxDevice;
    }


    public Integer getProxyUserId() {
        return proxyUserId;
    }

    public void setProxyUserId(Integer proxyUserId) {
        this.proxyUserId = proxyUserId;
    }

    @Override
    public String toString() {
        return "id=" + id + "," + "loginName=" + loginName + "," + "passwd=" + passwd + "," + "personName=" + personName + "," + "mobile=" + mobile + "," + "createTime=" + createTime + "," + "flag=" + flag;
    }
}
